{"ast":null,"code":"function splitValues(value) {\n  if (typeof value === 'number') {\n    return [value];\n  }\n  var splitStyle = String(value).split(/\\s+/); // Combine styles split in brackets, like `calc(1px + 2px)`\n\n  var temp = '';\n  var brackets = 0;\n  return splitStyle.reduce(function (list, item) {\n    if (item.includes('(')) {\n      temp += item;\n      brackets += item.split('(').length - 1;\n    } else if (item.includes(')')) {\n      temp += item;\n      brackets -= item.split(')').length - 1;\n      if (brackets === 0) {\n        list.push(temp);\n        temp = '';\n      }\n    } else if (brackets > 0) {\n      temp += item;\n    } else {\n      list.push(item);\n    }\n    return list;\n  }, []);\n}\nfunction noSplit(list) {\n  list.notSplit = true;\n  return list;\n}\nvar keyMap = {\n  // Inset\n  inset: ['top', 'right', 'bottom', 'left'],\n  insetBlock: ['top', 'bottom'],\n  insetBlockStart: ['top'],\n  insetBlockEnd: ['bottom'],\n  insetInline: ['left', 'right'],\n  insetInlineStart: ['left'],\n  insetInlineEnd: ['right'],\n  // Margin\n  marginBlock: ['marginTop', 'marginBottom'],\n  marginBlockStart: ['marginTop'],\n  marginBlockEnd: ['marginBottom'],\n  marginInline: ['marginLeft', 'marginRight'],\n  marginInlineStart: ['marginLeft'],\n  marginInlineEnd: ['marginRight'],\n  // Padding\n  paddingBlock: ['paddingTop', 'paddingBottom'],\n  paddingBlockStart: ['paddingTop'],\n  paddingBlockEnd: ['paddingBottom'],\n  paddingInline: ['paddingLeft', 'paddingRight'],\n  paddingInlineStart: ['paddingLeft'],\n  paddingInlineEnd: ['paddingRight'],\n  // Border\n  borderBlock: noSplit(['borderTop', 'borderBottom']),\n  borderBlockStart: noSplit(['borderTop']),\n  borderBlockEnd: noSplit(['borderBottom']),\n  borderInline: noSplit(['borderLeft', 'borderRight']),\n  borderInlineStart: noSplit(['borderLeft']),\n  borderInlineEnd: noSplit(['borderRight']),\n  // Border width\n  borderBlockWidth: ['borderTopWidth', 'borderBottomWidth'],\n  borderBlockStartWidth: ['borderTopWidth'],\n  borderBlockEndWidth: ['borderBottomWidth'],\n  borderInlineWidth: ['borderLeftWidth', 'borderRightWidth'],\n  borderInlineStartWidth: ['borderLeftWidth'],\n  borderInlineEndWidth: ['borderRightWidth'],\n  // Border style\n  borderBlockStyle: ['borderTopStyle', 'borderBottomStyle'],\n  borderBlockStartStyle: ['borderTopStyle'],\n  borderBlockEndStyle: ['borderBottomStyle'],\n  borderInlineStyle: ['borderLeftStyle', 'borderRightStyle'],\n  borderInlineStartStyle: ['borderLeftStyle'],\n  borderInlineEndStyle: ['borderRightStyle'],\n  // Border color\n  borderBlockColor: ['borderTopColor', 'borderBottomColor'],\n  borderBlockStartColor: ['borderTopColor'],\n  borderBlockEndColor: ['borderBottomColor'],\n  borderInlineColor: ['borderLeftColor', 'borderRightColor'],\n  borderInlineStartColor: ['borderLeftColor'],\n  borderInlineEndColor: ['borderRightColor'],\n  // Border radius\n  borderStartStartRadius: ['borderTopLeftRadius'],\n  borderStartEndRadius: ['borderTopRightRadius'],\n  borderEndStartRadius: ['borderBottomLeftRadius'],\n  borderEndEndRadius: ['borderBottomRightRadius']\n};\nfunction skipCheck(value) {\n  return {\n    _skip_check_: true,\n    value: value\n  };\n}\n/**\n * Convert css logical properties to legacy properties.\n * Such as: `margin-block-start` to `margin-top`.\n * Transform list:\n * - inset\n * - margin\n * - padding\n * - border\n */\n\nvar transform = {\n  visit: function visit(cssObj) {\n    var clone = {};\n    Object.keys(cssObj).forEach(function (key) {\n      var value = cssObj[key];\n      var matchValue = keyMap[key];\n      if (matchValue && (typeof value === 'number' || typeof value === 'string')) {\n        var values = splitValues(value);\n        if (matchValue.length && matchValue.notSplit) {\n          // not split means always give same value like border\n          matchValue.forEach(function (matchKey) {\n            clone[matchKey] = skipCheck(value);\n          });\n        } else if (matchValue.length === 1) {\n          // Handle like `marginBlockStart` => `marginTop`\n          clone[matchValue[0]] = skipCheck(value);\n        } else if (matchValue.length === 2) {\n          // Handle like `marginBlock` => `marginTop` & `marginBottom`\n          matchValue.forEach(function (matchKey, index) {\n            var _values$index;\n            clone[matchKey] = skipCheck((_values$index = values[index]) !== null && _values$index !== void 0 ? _values$index : values[0]);\n          });\n        } else if (matchValue.length === 4) {\n          // Handle like `inset` => `top` & `right` & `bottom` & `left`\n          matchValue.forEach(function (matchKey, index) {\n            var _ref, _values$index2;\n            clone[matchKey] = skipCheck((_ref = (_values$index2 = values[index]) !== null && _values$index2 !== void 0 ? _values$index2 : values[index - 2]) !== null && _ref !== void 0 ? _ref : values[0]);\n          });\n        } else {\n          clone[key] = value;\n        }\n      } else {\n        clone[key] = value;\n      }\n    });\n    return clone;\n  }\n};\nexport default transform;","map":{"version":3,"names":["splitValues","value","splitStyle","String","split","temp","brackets","reduce","list","item","includes","length","push","noSplit","notSplit","keyMap","inset","insetBlock","insetBlockStart","insetBlockEnd","insetInline","insetInlineStart","insetInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","marginInline","marginInlineStart","marginInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd","paddingInline","paddingInlineStart","paddingInlineEnd","borderBlock","borderBlockStart","borderBlockEnd","borderInline","borderInlineStart","borderInlineEnd","borderBlockWidth","borderBlockStartWidth","borderBlockEndWidth","borderInlineWidth","borderInlineStartWidth","borderInlineEndWidth","borderBlockStyle","borderBlockStartStyle","borderBlockEndStyle","borderInlineStyle","borderInlineStartStyle","borderInlineEndStyle","borderBlockColor","borderBlockStartColor","borderBlockEndColor","borderInlineColor","borderInlineStartColor","borderInlineEndColor","borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius","skipCheck","_skip_check_","transform","visit","cssObj","clone","Object","keys","forEach","key","matchValue","values","matchKey","index","_values$index","_ref","_values$index2"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.js"],"sourcesContent":["function splitValues(value) {\n  if (typeof value === 'number') {\n    return [value];\n  }\n\n  var splitStyle = String(value).split(/\\s+/); // Combine styles split in brackets, like `calc(1px + 2px)`\n\n  var temp = '';\n  var brackets = 0;\n  return splitStyle.reduce(function (list, item) {\n    if (item.includes('(')) {\n      temp += item;\n      brackets += item.split('(').length - 1;\n    } else if (item.includes(')')) {\n      temp += item;\n      brackets -= item.split(')').length - 1;\n\n      if (brackets === 0) {\n        list.push(temp);\n        temp = '';\n      }\n    } else if (brackets > 0) {\n      temp += item;\n    } else {\n      list.push(item);\n    }\n\n    return list;\n  }, []);\n}\n\nfunction noSplit(list) {\n  list.notSplit = true;\n  return list;\n}\n\nvar keyMap = {\n  // Inset\n  inset: ['top', 'right', 'bottom', 'left'],\n  insetBlock: ['top', 'bottom'],\n  insetBlockStart: ['top'],\n  insetBlockEnd: ['bottom'],\n  insetInline: ['left', 'right'],\n  insetInlineStart: ['left'],\n  insetInlineEnd: ['right'],\n  // Margin\n  marginBlock: ['marginTop', 'marginBottom'],\n  marginBlockStart: ['marginTop'],\n  marginBlockEnd: ['marginBottom'],\n  marginInline: ['marginLeft', 'marginRight'],\n  marginInlineStart: ['marginLeft'],\n  marginInlineEnd: ['marginRight'],\n  // Padding\n  paddingBlock: ['paddingTop', 'paddingBottom'],\n  paddingBlockStart: ['paddingTop'],\n  paddingBlockEnd: ['paddingBottom'],\n  paddingInline: ['paddingLeft', 'paddingRight'],\n  paddingInlineStart: ['paddingLeft'],\n  paddingInlineEnd: ['paddingRight'],\n  // Border\n  borderBlock: noSplit(['borderTop', 'borderBottom']),\n  borderBlockStart: noSplit(['borderTop']),\n  borderBlockEnd: noSplit(['borderBottom']),\n  borderInline: noSplit(['borderLeft', 'borderRight']),\n  borderInlineStart: noSplit(['borderLeft']),\n  borderInlineEnd: noSplit(['borderRight']),\n  // Border width\n  borderBlockWidth: ['borderTopWidth', 'borderBottomWidth'],\n  borderBlockStartWidth: ['borderTopWidth'],\n  borderBlockEndWidth: ['borderBottomWidth'],\n  borderInlineWidth: ['borderLeftWidth', 'borderRightWidth'],\n  borderInlineStartWidth: ['borderLeftWidth'],\n  borderInlineEndWidth: ['borderRightWidth'],\n  // Border style\n  borderBlockStyle: ['borderTopStyle', 'borderBottomStyle'],\n  borderBlockStartStyle: ['borderTopStyle'],\n  borderBlockEndStyle: ['borderBottomStyle'],\n  borderInlineStyle: ['borderLeftStyle', 'borderRightStyle'],\n  borderInlineStartStyle: ['borderLeftStyle'],\n  borderInlineEndStyle: ['borderRightStyle'],\n  // Border color\n  borderBlockColor: ['borderTopColor', 'borderBottomColor'],\n  borderBlockStartColor: ['borderTopColor'],\n  borderBlockEndColor: ['borderBottomColor'],\n  borderInlineColor: ['borderLeftColor', 'borderRightColor'],\n  borderInlineStartColor: ['borderLeftColor'],\n  borderInlineEndColor: ['borderRightColor'],\n  // Border radius\n  borderStartStartRadius: ['borderTopLeftRadius'],\n  borderStartEndRadius: ['borderTopRightRadius'],\n  borderEndStartRadius: ['borderBottomLeftRadius'],\n  borderEndEndRadius: ['borderBottomRightRadius']\n};\n\nfunction skipCheck(value) {\n  return {\n    _skip_check_: true,\n    value: value\n  };\n}\n/**\n * Convert css logical properties to legacy properties.\n * Such as: `margin-block-start` to `margin-top`.\n * Transform list:\n * - inset\n * - margin\n * - padding\n * - border\n */\n\n\nvar transform = {\n  visit: function visit(cssObj) {\n    var clone = {};\n    Object.keys(cssObj).forEach(function (key) {\n      var value = cssObj[key];\n      var matchValue = keyMap[key];\n\n      if (matchValue && (typeof value === 'number' || typeof value === 'string')) {\n        var values = splitValues(value);\n\n        if (matchValue.length && matchValue.notSplit) {\n          // not split means always give same value like border\n          matchValue.forEach(function (matchKey) {\n            clone[matchKey] = skipCheck(value);\n          });\n        } else if (matchValue.length === 1) {\n          // Handle like `marginBlockStart` => `marginTop`\n          clone[matchValue[0]] = skipCheck(value);\n        } else if (matchValue.length === 2) {\n          // Handle like `marginBlock` => `marginTop` & `marginBottom`\n          matchValue.forEach(function (matchKey, index) {\n            var _values$index;\n\n            clone[matchKey] = skipCheck((_values$index = values[index]) !== null && _values$index !== void 0 ? _values$index : values[0]);\n          });\n        } else if (matchValue.length === 4) {\n          // Handle like `inset` => `top` & `right` & `bottom` & `left`\n          matchValue.forEach(function (matchKey, index) {\n            var _ref, _values$index2;\n\n            clone[matchKey] = skipCheck((_ref = (_values$index2 = values[index]) !== null && _values$index2 !== void 0 ? _values$index2 : values[index - 2]) !== null && _ref !== void 0 ? _ref : values[0]);\n          });\n        } else {\n          clone[key] = value;\n        }\n      } else {\n        clone[key] = value;\n      }\n    });\n    return clone;\n  }\n};\nexport default transform;"],"mappings":"AAAA,SAASA,WAAW,CAACC,KAAK,EAAE;EAC1B,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC7B,OAAO,CAACA,KAAK,CAAC;EAChB;EAEA,IAAIC,UAAU,GAAGC,MAAM,CAACF,KAAK,CAAC,CAACG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;;EAE7C,IAAIC,IAAI,GAAG,EAAE;EACb,IAAIC,QAAQ,GAAG,CAAC;EAChB,OAAOJ,UAAU,CAACK,MAAM,CAAC,UAAUC,IAAI,EAAEC,IAAI,EAAE;IAC7C,IAAIA,IAAI,CAACC,QAAQ,CAAC,GAAG,CAAC,EAAE;MACtBL,IAAI,IAAII,IAAI;MACZH,QAAQ,IAAIG,IAAI,CAACL,KAAK,CAAC,GAAG,CAAC,CAACO,MAAM,GAAG,CAAC;IACxC,CAAC,MAAM,IAAIF,IAAI,CAACC,QAAQ,CAAC,GAAG,CAAC,EAAE;MAC7BL,IAAI,IAAII,IAAI;MACZH,QAAQ,IAAIG,IAAI,CAACL,KAAK,CAAC,GAAG,CAAC,CAACO,MAAM,GAAG,CAAC;MAEtC,IAAIL,QAAQ,KAAK,CAAC,EAAE;QAClBE,IAAI,CAACI,IAAI,CAACP,IAAI,CAAC;QACfA,IAAI,GAAG,EAAE;MACX;IACF,CAAC,MAAM,IAAIC,QAAQ,GAAG,CAAC,EAAE;MACvBD,IAAI,IAAII,IAAI;IACd,CAAC,MAAM;MACLD,IAAI,CAACI,IAAI,CAACH,IAAI,CAAC;IACjB;IAEA,O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